#!/usr/bin/env sh

distdir=$(date "+iegen_%Y-%m-%d")
echo $distdir

./configure
rm -Rf $distdir
mkdir $distdir
cp -R CMakeLists.txt Makefile Modules README configure doc libs scripts src $distdir
rm -Rf $distdir/libs/gmp/.git $distdir/libs/isl/.git $distdir/libs/cloog/.git
tar -cvzf $distdir.tar.tgz $distdir
rm -Rf $distdir
